from docx2pdf import convert
import glob
[convert(file,"{}.pdf".format(file.split('.')[0])) for file in glob.glob("words\*.docx")]
